package com.jake.microservice.consumer.service;

import com.jake.microservice.consumer.fallback.UserFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "eureka-provider", fallback = UserFeignServiceFallback.class)
public interface UserFeignService {

    @GetMapping("users")
    String getUsers();

    @GetMapping("users/{uid}")
    String getUserById(@PathVariable Integer uid);
}
